package com.ryskoo.common.dto.order;


import com.ryskoo.common.constant.*;
import com.ryskoo.common.dto.BasicDTO;
import com.ryskoo.common.hclconstant.SendTypeEnum;


/**
 * 订单DTO
 * @author Monster
 *
 */
public class OrderMainDTO extends BasicDTO{

	private static final long serialVersionUID = 1L;
	
	/**
     * 订单组uuid
     */
    private String groupId;
    
    /**
     * 订单号
     */
    private String orderId;
    
    
    /**
     * 订单组uuid
     * 订单类型 1普通 2秒杀 3团购
     */
    private int orderType = OrderTypeEnum.ORDINARY.getValue();
    
    /**
     * 商户uuid
     */
    private String vendorId;
    
    /**
     * 商户名称
     */
    private String vendorName;
    
    /**
     * 订单状态
     * 1待付款 2待发货 3部分发货 4已发货 5交易成功 6交易关闭 
     */
    private int orderStatus = OrderStatusEnum.WAITPAY.getValue();
    
    /**
     * 会员uuid
     */
    private String customerId;
    
    
    /**
     * 会员名称
     */
    private String customerName;
    
    /**
     * 订单来源
     * 1pc 2wap 3小程序 4app
     */
    private int orderSource = OrderSourceEnum.PC.getValue();
    
    /**
     * 订单支付方式
     * 2支付宝 3微信 4银联
     */
    private int payType;  
    
    /**
     * 订单支付时间
     */
    private String payTime;    
    
    /**
     * 订单发货时间
     */
    private String sendTime;  
    
    /**
     * 订单到货时间
     */
    private String receiveTime;  
    
    /**
     * 商品总价格
     */
    private double productMoney;  
    
    /**
     * 订单运费
     */
    private double orderCarriage;  
    
    /**
     * 优惠金额
     * 优惠券、满减优惠金额
     */
    private double freeMoney;  
    
    /**
     * 订单实付金额
     */
    private double payMoney;  
    
    /**
     * 买家留言
     */
    private String customerNote;  
    
    /**
     * 商家备注
     */
    private String vendorNote;  
    
    /**
     * 配送方式 1快递 2自提  默认1
     */
    private int shipType = SendTypeEnum.EXPRESS.getValue();  
    
    
    /**
     * 订单赠送积分
     */
    private int giveIntegral;  
    
    
    /**
     * 评价状态 1待评价 2已评价  默认1
     */
    private int appraiseStatus = SystemConstant.CONSTANT_ONE;  
    
    
    /**
     * 分账结算状态 1待分账 2已分账待结算 3已结算待付款 4结算成功 默认1
     */
    private int splitStatus = SplitStatusEnum.TOACCOUNT.getValue();   
    
    
    /**
     * 订单分账时间
     */
    private String splitTime; 
    
    
    /**
     * 订单结算时间
     */
    private String balanceTime; 
    
    
    /**
     * 分销人uuid
     */
    private String distributorId;


	public String getGroupId() {
		return groupId;
	}


	public void setGroupId(String groupId) {
		this.groupId = groupId;
	}


	public String getOrderId() {
		return orderId;
	}


	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}


	public int getOrderType() {
		return orderType;
	}


	public void setOrderType(int orderType) {
		this.orderType = orderType;
	}


	public String getVendorId() {
		return vendorId;
	}


	public void setVendorId(String vendorId) {
		this.vendorId = vendorId;
	}


	public String getVendorName() {
		return vendorName;
	}


	public void setVendorName(String vendorName) {
		this.vendorName = vendorName;
	}


	public int getOrderStatus() {
		return orderStatus;
	}


	public void setOrderStatus(int orderStatus) {
		this.orderStatus = orderStatus;
	}


	public String getCustomerId() {
		return customerId;
	}


	public void setCustomerId(String customerId) {
		this.customerId = customerId;
	}


	public String getCustomerName() {
		return customerName;
	}


	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}


	public int getOrderSource() {
		return orderSource;
	}


	public void setOrderSource(int orderSource) {
		this.orderSource = orderSource;
	}


	public int getPayType() {
		return payType;
	}


	public void setPayType(int payType) {
		this.payType = payType;
	}


	public String getPayTime() {
		return payTime;
	}


	public void setPayTime(String payTime) {
		this.payTime = payTime;
	}


	public String getSendTime() {
		return sendTime;
	}


	public void setSendTime(String sendTime) {
		this.sendTime = sendTime;
	}


	public String getReceiveTime() {
		return receiveTime;
	}


	public void setReceiveTime(String receiveTime) {
		this.receiveTime = receiveTime;
	}


	public double getProductMoney() {
		return productMoney;
	}


	public void setProductMoney(double productMoney) {
		this.productMoney = productMoney;
	}


	public double getOrderCarriage() {
		return orderCarriage;
	}


	public void setOrderCarriage(double orderCarriage) {
		this.orderCarriage = orderCarriage;
	}


	public double getFreeMoney() {
		return freeMoney;
	}


	public void setFreeMoney(double freeMoney) {
		this.freeMoney = freeMoney;
	}


	public double getPayMoney() {
		return payMoney;
	}


	public void setPayMoney(double payMoney) {
		this.payMoney = payMoney;
	}


	public String getCustomerNote() {
		return customerNote;
	}


	public void setCustomerNote(String customerNote) {
		this.customerNote = customerNote;
	}


	public String getVendorNote() {
		return vendorNote;
	}


	public void setVendorNote(String vendorNote) {
		this.vendorNote = vendorNote;
	}


	public int getShipType() {
		return shipType;
	}


	public void setShipType(int shipType) {
		this.shipType = shipType;
	}


	public int getGiveIntegral() {
		return giveIntegral;
	}


	public void setGiveIntegral(int giveIntegral) {
		this.giveIntegral = giveIntegral;
	}


	public int getAppraiseStatus() {
		return appraiseStatus;
	}


	public void setAppraiseStatus(int appraiseStatus) {
		this.appraiseStatus = appraiseStatus;
	}


	public int getSplitStatus() {
		return splitStatus;
	}


	public void setSplitStatus(int splitStatus) {
		this.splitStatus = splitStatus;
	}


	public String getSplitTime() {
		return splitTime;
	}


	public void setSplitTime(String splitTime) {
		this.splitTime = splitTime;
	}


	public String getBalanceTime() {
		return balanceTime;
	}


	public void setBalanceTime(String balanceTime) {
		this.balanceTime = balanceTime;
	}


	public String getDistributorId() {
		return distributorId;
	}


	public void setDistributorId(String distributorId) {
		this.distributorId = distributorId;
	}


	@Override
	public String toString() {
		return "OrderMainDTO [groupId=" + groupId + ", orderId=" + orderId
				+ ", orderType=" + orderType + ", vendorId=" + vendorId
				+ ", vendorName=" + vendorName + ", orderStatus=" + orderStatus
				+ ", customerId=" + customerId + ", customerName="
				+ customerName + ", orderSource=" + orderSource + ", payType="
				+ payType + ", payTime=" + payTime + ", sendTime=" + sendTime
				+ ", receiveTime=" + receiveTime + ", productMoney="
				+ productMoney + ", orderCarriage=" + orderCarriage
				+ ", freeMoney=" + freeMoney + ", payMoney=" + payMoney
				+ ", customerNote=" + customerNote + ", vendorNote="
				+ vendorNote + ", shipType=" + shipType + ", giveIntegral="
				+ giveIntegral + ", appraiseStatus=" + appraiseStatus
				+ ", splitStatus=" + splitStatus + ", splitTime=" + splitTime
				+ ", balanceTime=" + balanceTime + ", distributorId="
				+ distributorId + "]";
	}
	
}
